package com.seari.c3gallery.pojo;

import org.apache.commons.lang3.StringUtils;

public class MessageBean extends BaseBean {

	private static final long serialVersionUID = -7425693410814580587L;

	private String code;

	private String type;

	private String message;

	private long count;

	private Object data;

	public MessageBean() {
	}

	public MessageBean(String type, String message) {
		this.type = type;
		this.message = message;
	}

	public void appendMessage(String str) {
		if (StringUtils.isBlank(this.message)) {
			this.message = "";
		}
		this.message = this.message + str + "\n";
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public long getCount() {
		return count;
	}

	public void setCount(long count) {
		this.count = count;
	}
}
